package com.explorx.sns.puma.im.core.dal.entity;

import java.io.Serializable;
import java.util.Date;

public class ConversationEntity implements Serializable {
    private Long id;

    private Long cid;

    private Long userId;

    private Integer type;

    private Integer bizId;

    private Boolean mute;

    private Boolean visible;

    private Integer topRank;

    private Integer redPoint;

    private Date minCursor;

    private Long lastMessageId;

    private Byte status;

    private Integer version;

    private Date createTime;

    private Date updateTime;

    private String extInfo;

    private Long partnerId;

    private String partnerAlias;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getBizId() {
        return bizId;
    }

    public void setBizId(Integer bizId) {
        this.bizId = bizId;
    }

    public Boolean getMute() {
        return mute;
    }

    public void setMute(Boolean mute) {
        this.mute = mute;
    }

    public Boolean getVisible() {
        return visible;
    }

    public void setVisible(Boolean visible) {
        this.visible = visible;
    }

    public Integer getTopRank() {
        return topRank;
    }

    public void setTopRank(Integer topRank) {
        this.topRank = topRank;
    }

    public Integer getRedPoint() {
        return redPoint;
    }

    public void setRedPoint(Integer redPoint) {
        this.redPoint = redPoint;
    }

    public Date getMinCursor() {
        return minCursor;
    }

    public void setMinCursor(Date minCursor) {
        this.minCursor = minCursor;
    }

    public Long getLastMessageId() {
        return lastMessageId;
    }

    public void setLastMessageId(Long lastMessageId) {
        this.lastMessageId = lastMessageId;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getExtInfo() {
        return extInfo;
    }

    public void setExtInfo(String extInfo) {
        this.extInfo = extInfo == null ? null : extInfo.trim();
    }

    public Long getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(Long partnerId) {
        this.partnerId = partnerId;
    }

    public String getPartnerAlias() {
        return partnerAlias;
    }

    public void setPartnerAlias(String partnerAlias) {
        this.partnerAlias = partnerAlias == null ? null : partnerAlias.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ConversationEntity other = (ConversationEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getBizId() == null ? other.getBizId() == null : this.getBizId().equals(other.getBizId()))
            && (this.getMute() == null ? other.getMute() == null : this.getMute().equals(other.getMute()))
            && (this.getVisible() == null ? other.getVisible() == null : this.getVisible().equals(other.getVisible()))
            && (this.getTopRank() == null ? other.getTopRank() == null : this.getTopRank().equals(other.getTopRank()))
            && (this.getRedPoint() == null ? other.getRedPoint() == null : this.getRedPoint().equals(other.getRedPoint()))
            && (this.getMinCursor() == null ? other.getMinCursor() == null : this.getMinCursor().equals(other.getMinCursor()))
            && (this.getLastMessageId() == null ? other.getLastMessageId() == null : this.getLastMessageId().equals(other.getLastMessageId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getExtInfo() == null ? other.getExtInfo() == null : this.getExtInfo().equals(other.getExtInfo()))
            && (this.getPartnerId() == null ? other.getPartnerId() == null : this.getPartnerId().equals(other.getPartnerId()))
            && (this.getPartnerAlias() == null ? other.getPartnerAlias() == null : this.getPartnerAlias().equals(other.getPartnerAlias()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getBizId() == null) ? 0 : getBizId().hashCode());
        result = prime * result + ((getMute() == null) ? 0 : getMute().hashCode());
        result = prime * result + ((getVisible() == null) ? 0 : getVisible().hashCode());
        result = prime * result + ((getTopRank() == null) ? 0 : getTopRank().hashCode());
        result = prime * result + ((getRedPoint() == null) ? 0 : getRedPoint().hashCode());
        result = prime * result + ((getMinCursor() == null) ? 0 : getMinCursor().hashCode());
        result = prime * result + ((getLastMessageId() == null) ? 0 : getLastMessageId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getExtInfo() == null) ? 0 : getExtInfo().hashCode());
        result = prime * result + ((getPartnerId() == null) ? 0 : getPartnerId().hashCode());
        result = prime * result + ((getPartnerAlias() == null) ? 0 : getPartnerAlias().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", cid=").append(cid);
        sb.append(", userId=").append(userId);
        sb.append(", type=").append(type);
        sb.append(", bizId=").append(bizId);
        sb.append(", mute=").append(mute);
        sb.append(", visible=").append(visible);
        sb.append(", topRank=").append(topRank);
        sb.append(", redPoint=").append(redPoint);
        sb.append(", minCursor=").append(minCursor);
        sb.append(", lastMessageId=").append(lastMessageId);
        sb.append(", status=").append(status);
        sb.append(", version=").append(version);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", extInfo=").append(extInfo);
        sb.append(", partnerId=").append(partnerId);
        sb.append(", partnerAlias=").append(partnerAlias);
        sb.append("]");
        return sb.toString();
    }
}